;(function() {
		//同步会员信息
		$("#btn-sync").click(function(){
				loading();
				$.post(
					"/admin/member/sync_all",
					{"blocks":$("input[name='blocks']:checked").val()},
					function(data){
						 close_loading();
						 if(data.flag){
						 	$("#result").empty();
						 	$("#result").append(data.data);
						 	close_loading();
						 }else{
						 	toastr["error"](data.msg,"错误提示");
						 }
					}
				);
				return false;
		})
})();
